package com.fable.biz.operate.impl;

import com.fable.biz.operate.HomeClickService;
import com.fable.biz.operate.enums.VisitEnum;
import com.fable.dal.mapper.ext.HomeClickExtMapper;
import com.fable.dal.model.HomeClickDO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Date;
import java.util.List;

/**
 * Created by weishuai on 15/12/14.
 */
@Service("homeClickService")
public class HomeClickServiceImpl implements HomeClickService {
    @Autowired
    HomeClickExtMapper homeClickExtMapper;

    @Override
    public List<HomeClickDO> findHomeClickByDate(VisitEnum visitEnum,String url,Date startDate, Date endDate) {

        return homeClickExtMapper.selectHomeClickByDate(visitEnum.name(),url,startDate,endDate);
    }
}
